package io.github.biezhi.elves.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.github.biezhi.elves.sgggzy.model.SgBiddingList;
import io.github.biezhi.elves.sgggzy.model.SgDownloadBiddingHtml;
import io.github.biezhi.elves.sgggzy.model.SgRecordBiddingNotice;
import io.github.biezhi.elves.mapper.SgggzyMapper;
import io.github.biezhi.elves.service.SgggzyService;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Service("sgggzyService")
public class SgggzyServiceImpl implements SgggzyService {

	@Autowired
	private SgggzyMapper sgggzyMapper;
	
	@Override
	public void saveSgRecordBiddingNotice(SgRecordBiddingNotice sgRecordBiddingNotice) {
		sgggzyMapper.saveSgRecordBiddingNotice(sgRecordBiddingNotice);
	}

	@Override
	public Integer countByUrl(String noticeDetailUrl) {
		return sgggzyMapper.countByUrl(noticeDetailUrl);
	}

	@Override
	public List<SgRecordBiddingNotice> findRecordByNoticeTypeAndDate(String noticeType, String date) {
		return sgggzyMapper.findRecordByNoticeTypeAndDate(noticeType,date);
	}

	@Override
	public void saveSgDownloadBiddingHtml(SgDownloadBiddingHtml sgDownloadBiddingHtml) {
		sgggzyMapper.saveSgDownloadBiddingHtml(sgDownloadBiddingHtml);
	}

	@Override
	public Integer countByDownloadUrl(String noticeDetailUrl) {
		return sgggzyMapper.countByDownloadUrl(noticeDetailUrl);
	}

	@Override
	public List<SgDownloadBiddingHtml> listDownloadHtml() {
		return sgggzyMapper.listDownloadHtml();
	}

	@Override
	public void saveSgBiddingList(SgBiddingList sgbiddingList) {
		sgggzyMapper.saveSgbiddingList(sgbiddingList);
	}

	@Override
	public List<SgDownloadBiddingHtml> listDownloadHtmlByTabType(String tabType) {
		return sgggzyMapper.listDownloadHtmlByTabType(tabType);
	}

}
